home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail-5.65c+IDA-1.4.4.1 / src / Makefile.3b1 < prev    next >
Encoding:
Makefile  |  1991-06-17  |  8.0 KB  |  192 lines

  1. #    @(#)Makefile.3b1    1.2    6/16/91    19:43:12
  2. #
  3. # Copyright (c) 1988 Regents of the University of California.
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms are permitted
  7. # provided that the above copyright notice and this paragraph are
  8. # duplicated in all such forms and that any documentation,
  9. # advertising materials, and other materials related to such
  10. # distribution and use acknowledge that the software was developed
  11. # by the University of California, Berkeley.  The name of the
  12. # University may not be used to endorse or promote products derived
  13. # from this software without specific prior written permission.
  14. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  15. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  16. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  17. #
  18. #    @(#)Makefile    5.11 (Berkeley) 1/3/89
  19. #
  20. # Makefile for sendmail on AT&T 3B1 using WIN/TCP network library, gcc, shared library.
  21. #    Your mileage may vary.
  22. all:    sendmail
  23.  
  24. HDRS=    conf.h mailstats.h sendmail.h useful.h
  25. SRCS=    alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \
  26.     deliver.c domain.c envelope.c err.c getloadavg.c headers.c \
  27.     macro.c main.c parseaddr.c queue.c readcf.c recipient.c \
  28.     savemail.c srvrsmtp.c stab.c stats.c sysexits.c trace.c \
  29.     usersmtp.c util.c ../ida/charset/strcnv.c flock.c setenv.c \
  30.     vprintf.c version.c 
  31. OBJS=    alias.o arpadate.o clock.o collect.o conf.o convtime.o daemon.o \
  32.     deliver.o domain.o envelope.o err.o getloadavg.o headers.o \
  33.     macro.o main.o parseaddr.o queue.o readcf.o recipient.o \
  34.     savemail.o srvrsmtp.o stab.o stats.o sysexits.o trace.o \
  35.     usersmtp.o util.o strcnv.o flock.o setenv.o vprintf.o version.o
  36. MAN=    sendmail.0 newaliases.0 aliases.0
  37.  
  38. LIBDIR=    /usr/local/lib/mail
  39.  
  40. CC =gcc -g -fcombine-regs -fstrength-reduce -fpcc-struct-return -Wall #-ansi -pedantic
  41. INCL =-I/usr/local/lib/gcc-include -I. -I/usr/ethernet/include -I../support
  42. CFLAGS =-O $(INCL)
  43. LDFLAGS = -s
  44.  
  45. WHAT=    what
  46.  
  47. 3B1SRCS =flock.c ../support/strcasecmp.c syslog.c ../support/strerror.c
  48. 3B1OBJS =flock.o strcasecmp.o syslog.o strerror.o
  49. COBJS=    #vsprintf.o doprnt.o
  50.  
  51. .PRECIOUS: sendmail
  52.  
  53. sendmail: ${OBJS} datecompiled.o version.o $(3B1OBJS) $(COBJS) shlib.ifile
  54.     ${LD} ${LDFLAGS} -o $@ `lorder /lib/crt0s.o ${OBJS} datecompiled.o version.o $(3B1OBJS) $(COBJS) | tsort` -lgdbm -lnet -ldirent /usr/local/lib/gcc-gnulib shlib.ifile
  55.     size sendmail; ls -l sendmail; ${WHAT} < version.o ; rm -f datecompiled.?
  56.  
  57. mkdep: ${SRCS}
  58.     @gcc -MM ${INCL} $(SRCS)
  59.  
  60. cflow.out: ${SRCS} ${3B1SRCS} datecompiled.c version.c
  61.     cflow -ix -Dunixpc -D__GNUC__ ${INCL} $(SRCS) ${3B1SRCS} datecompiled.c version.c >$@
  62.  
  63. setvbuf.o lockf.o vsprintf.o vfprintf.o doprnt.o: /lib/libc.a
  64.     ar -x $? $@
  65.  
  66. shlib.ifile: /lib/shlib.ifile
  67.     egrep -v "sys_errlist|sys_nerr|perror|message" $? >$@
  68.  
  69. # this looks wierd but it works -- the object file may be created here or be in ../support
  70. rename.o strcasecmp.o strerror.o: ../support/$$@ sendmail.h conf.h config/3b1.h
  71.     -ln ../support/$@ .
  72.     -ln $@ ../support
  73. #syslog.o: S5/$$@ S5/syslog.c sendmail.h conf.h config/3b1.h
  74. #    -ln S5/$@ .
  75. #    -ln $@ S5
  76.  
  77. dsendmail: ${OBJS} datecompiled.o version.o
  78.     ${LD} -o sendmail `lorder /lib/crt0.o ${OBJS} datecompiled.o version.o | tsort` -lgdbm -lnet -ldirent /usr/local/lib/gcc-gnulib -lg -lc -ltam
  79.     size sendmail; ls -l sendmail; ${WHAT} < version.o ; rm -f datecompiled.?
  80.  
  81. dsendmail2: ${OBJS} datecompiled.o version.o
  82.     ${LD} -o sendmail `lorder /lib/crt0.o ${OBJS} datecompiled.o version.o | tsort` -lgdbm -lnet -ldirent -lmalloc /usr/local/lib/gcc-gnulib -lg -lc -ltam
  83.     size sendmail; ls -l sendmail; ${WHAT} < version.o ; rm -f datecompiled.?
  84.  
  85. datecompiled.c:
  86.     echo 'char datecompiled[] = "' `date` '";' >datecompiled.c
  87.  
  88. strcnv.o:    ../ida/charset/strcnv.c
  89.     ${CC} ${CFLAGS} -DMAPDIR=\"${DESTDIR}/${LIBDIR}/char\" -c \
  90.         ../ida/charset/strcnv.c
  91.  
  92. #install: ${MAN}
  93. #    install -c -s -o root -g kmem -m 6755 sendmail ${DESTDIR}/usr/lib
  94. #    install -c -o bin -g bin -m 644 /dev/null ${DESTDIR}/usr/lib/sendmail.fc
  95. #    install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/lib/sendmail.st
  96. #    install -c -o bin -g bin -m 666 /dev/null ${DESTDIR}/usr/lib/sendmail.st
  97. #    install -c -o bin -g bin -m 444 sendmail.hf /usr/lib/sendmail.hf
  98. #    install -c -o bin -g bin -m 444 sendmail.0 ${DESTDIR}/usr/man/cat8
  99. #    install -c -o bin -g bin -m 444 aliases.0 ${DESTDIR}/usr/man/cat5
  100. #    install -c -o bin -g bin -m 444 newaliases.0 ${DESTDIR}/usr/man/cat1
  101. #    -mkdir ${DESTDIR}/usr/spool/mqueue
  102. #    chown root.wheel ${DESTDIR}/usr/spool/mqueue
  103. #    chmod 775 ${DESTDIR}/usr/spool/mqueue
  104. #    rm -f ${DESTDIR}/usr/ucb/newaliases
  105. #    ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/newaliases
  106. #    rm -f ${DESTDIR}/usr/ucb/mailq
  107. #    ln -s ${DESTDIR}/usr/lib/sendmail ${DESTDIR}/usr/ucb/mailq
  108.  
  109. version: newversion ${OBJS} version.c
  110.  
  111. #newversion:
  112. #    @rm -f SCCS/p.version.c version.c
  113. #    @${GET} -e SCCS/s.version.c
  114. #    @${DELTA} -s SCCS/s.version.c
  115. #    @${GET} -t -s SCCS/s.version.c
  116.  
  117. #Version.c: version.c
  118. #    @echo generating Version.c from version.c
  119. #    @cp version.c Version.c
  120. #    @chmod 644 Version.c
  121. #    @echo "" >> Version.c
  122. #    @echo "# ifdef COMMENT" >> Version.c
  123. #    @${PRT} SCCS/s.version.c >> Version.c
  124. #    @echo "" >> Version.c
  125. #    @echo "code versions:" >> Version.c
  126. #    @echo "" >> Version.c
  127. #    @${WHAT} ${OBJS} >> Version.c
  128. #    @echo "" >> Version.c
  129. #    @echo "# endif COMMENT" >> Version.c
  130.  
  131. # deget is a script that rm's a file iff there's an s.file but no p.file in the same directory
  132. clean: 
  133.     rm -f *.o core *.out shlib.ifile ../support/*.o makelog *.mon
  134.     deget ?[!.]*.[ch] ../support/?[!.]*.[ch]
  135.  
  136. cleandir: clean
  137.     rm -f ${MAN} tags .depend
  138.  
  139. depend: ${SRCS}
  140.     mkdep ${CFLAGS} ${SRCS}
  141.  
  142. tags: ${SRCS}
  143.     ctags ${SRCS}
  144.  
  145. lint: ${SRCS}
  146.     lint -chapbx ${CCONFIG} ${SRCS}
  147.  
  148. alias.o : alias.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  149. arpadate.o : arpadate.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  150.   def.h 
  151. clock.o : clock.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  152. collect.o : collect.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  153. conf.o : conf.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  154. convtime.o : convtime.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  155.   def.h 
  156. daemon.o : daemon.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  157. deliver.o : deliver.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  158. domain.o : domain.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  159. envelope.o : envelope.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  160.   def.h 
  161. err.o : err.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  162. getloadavg.o : getloadavg.c conf.h config/3b1.h sendmail.h useful.h flock.h \
  163.   def.h 
  164. headers.o : headers.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  165. macro.o : macro.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  166. main.o : main.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  167. parseaddr.o : parseaddr.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  168.   def.h 
  169. queue.o : queue.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  170. readcf.o : readcf.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  171. recipient.o : recipient.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  172.   def.h 
  173. savemail.o : savemail.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  174.   def.h 
  175. srvrsmtp.o : srvrsmtp.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  176.   def.h 
  177. stab.o : stab.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  178. stats.o : stats.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h \
  179.   mailstats.h 
  180. sysexits.o : sysexits.c 
  181. trace.o : trace.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  182. usersmtp.o : usersmtp.c sendmail.h conf.h config/3b1.h useful.h flock.h \
  183.   def.h 
  184. util.o : util.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  185. strcnv.o : ../ida/charset/strcnv.c ./sendmail.h ./conf.h ./config/3b1.h \
  186.   ./useful.h ./flock.h ./def.h 
  187. flock.o : flock.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  188. setenv.o : setenv.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  189. vprintf.o : vprintf.c sendmail.h conf.h config/3b1.h useful.h flock.h def.h 
  190. version.o : version.c conf.h config/3b1.h 
  191. syslog.o: syslog.c sendmail.h conf.h config/3b1.h useful.h def.h
  192.